import { createApp } from 'vue';
// import './style.css'
import App from './App.vue';
// 全局配置国际化的配置
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import 'dayjs/locale/zh-cn';

// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
// import 'element-plus/es/components/message/style/css'
// import 'element-plus/theme-chalk/el-overlay.css';
// import 'element-plus/theme-chalk/el-message-box.css';

import router from './router';
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import './assets/icon/iconfont.css';
import 'virtual:uno.css'; //unocss要在class里用icon就需要这个
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);

app.use(router)
    .use(pinia)
    .use(ElementPlus, {
        locale: zhCn,
    })
    .mount('#app');
